package com.bwei.topnews.bean;

/**
 * Created by qwe on 2016/11/15.
 */
public class CityInfo implements Comparable<CityInfo> {
    private String cityname;
    private String namesort;
    private boolean Flag;

    public boolean isFlag() {
        return Flag;
    }

    public void setFlag(boolean flag) {
        Flag = flag;
    }


    public CityInfo(String cityname, String namesort) {
        this.cityname = cityname;
        this.namesort = namesort;
    }

    public CityInfo() {
    }

    public String getCityname() {
        return cityname;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname;
    }

    public String getNamesort() {
        return namesort;
    }

    public void setNamesort(String namesort) {
        this.namesort = namesort;
    }

    @Override
    public int compareTo(CityInfo another) {

        return this.getNamesort().compareTo(another.namesort);
    }
}
